﻿using UnityEngine;
using System.Collections;

public class DestroyShadow : MonoBehaviour {
	public float destroyTime;
	private float timer;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	if(StartGame.gameStart == true){
			timer += Time.deltaTime;
			if(timer > destroyTime){
				Destroy(gameObject);
			}
		}
	}
}
